package org.jsea.meta.api.service;

import org.jsea.meta.api.bean.MetaApiDefinitionBean;

import java.util.StringJoiner;

/**
 * --.
 * *
 * author   Jiang.hy
 * create   2022-04-09
 */
public class MetaApiDelHandler extends AbstractMetaApiHandler {

    public MetaApiDelHandler(MetaApiDefinitionBean bean) {
        super(bean);
    }

    @Override
    public String sql() {
        return new StringJoiner(" ")
                .add("delete from")
                .add(table())
                .add(getWhere())
                .toString();
    }
}
